package org.tio.sitexxx.im.client.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.core.ChannelContext;
import org.tio.sitexxx.im.common.Command;
import org.tio.sitexxx.im.common.CommandHandler;
import org.tio.sitexxx.im.common.ImPacket;
import org.tio.sitexxx.im.common.bs.JoinGroupNtf;
import org.tio.utils.json.Json;

/**
 * 进群响应处理者
 * @author tanyaowu
 * 2016年5月9日 上午11:46:24
 */
@CommandHandler(Command.JOIN_GROUP_NTY)
public class JoinGroupNtfHandler implements ImClientHandler {
	@SuppressWarnings("unused")
	private static Logger log = LoggerFactory.getLogger(JoinGroupNtfHandler.class);

	public JoinGroupNtfHandler() {

	}

	@Override
	public void handler(ImPacket packet, ChannelContext channelContext) throws Exception {
		JoinGroupNtf joinGroupNtf = Json.toBean(packet.getBodyStr(), JoinGroupNtf.class);
		joinGroupNtf.getG();
		joinGroupNtf.getOnline();
		joinGroupNtf.getT();
		joinGroupNtf.getU();
	}
}
